package de.uni_mannheim.informatik.ai.dame_ai.dame.domain;

import de.uni_mannheim.informatik.ai.dame_ai.main.application.GameSettings;


public class GameStatus {
	private Board board;
	private Player currentPlayer;
	private int selectedPiece;
	private boolean gameOver;
	private boolean selectionPossible;
	private GameSettings data;
	public GameSettings getData() {
		return data;
	}
	public Board getBoard() {
		return board;
	}
	public Player getCurrentPlayer() {
		return currentPlayer;
	}
	/**
	 * This Class saves the objects to be sent to observers
	 * @param board Current Board setup
	 * @param gameStatus Current Piece setup
	 * @param currentPlayer The Player whos turn it is
	 * @param selectionPossible If new selection is possible
	 * @param selectedPiece The selected Piece, if available else -1
	 */
	public GameStatus(Board board, Player currentPlayer, boolean selectionPossible, int selectedPiece, GameSettings data) {
		super();
		this.board = board;
		this.data = data;
		this.currentPlayer = currentPlayer;
		this.selectionPossible = selectionPossible;
		this.selectedPiece = selectedPiece;
		this.gameOver = false;
	}
	public int getSelectedPiece() {
		return selectedPiece;
	}

	public boolean isSelectionPossible() {
		return selectionPossible;
	}
	public boolean isGameOver() {
		return gameOver;
	}
	public void setGameOver(boolean gameOver) {
		this.gameOver = gameOver;
	}
	
}
